package webshop.beans;

import java.util.List;

import database.entity.ShopItem;
import database.entitymanager.ShopItemManager;

public class ShopItemsBean {
	private static final int SHOP_ITEM_DISPLAY_COUNT = 9;
	private List<ShopItem> shopItems = null;
	
	public ShopItemsBean(){	
	}
	
	public List<ShopItem> getShopItems(){
		if(shopItems==null){
			shopItems=ShopItemManager.findShopItemEntities(SHOP_ITEM_DISPLAY_COUNT,0);
		}
		return shopItems;
	}
}
